package com.t216.dm216.controller;

import com.t216.dm216.common.Result;
import com.t216.dm216.pojo.DmArea;
import com.t216.dm216.service.DmAreaService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/base/api/p")
public class BaseController {
    @Resource
    private DmAreaService areaService;
    @PostMapping("/area/queryCityList")
    public Result<List<DmArea>> queryCityList(){
        return Result.success(areaService.getAreaList());
    }
}
